package com.ybl.wallet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ybl.wallet.entity.Transactions;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface TransactionsMapper extends BaseMapper {

    // 根据用户ID和时间范围查询钱包记录
    List<Transactions> selectTransactionsByUserIdAndTimeRange(@Param("userId") Long userId,
                                                              @Param("startTime") Date startTime,
                                                              @Param("endTime") Date endTime);

}
